(function (){
	var mCharts = echarts.init(document.querySelector("#scatter"))
	var option = {
		title:{
			text:'散点图',
			top:'5%',left:'center'
		},
		legend: {},
		tooltip: {
			trigger: "item",
			axisPointer: {
				type: "shadow"
			},
			position: function (pos, params, el, elRect, size) {
				var obj = {top: 10};
				obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
				return obj;
			},
			extraCssText: 'width: 170px'
		},
		grid:[
			{bottom:61,left:'center'},
			{height:60,
			bottom:0,
			left:'center'}
		],
		dataset:{
			source:scadata
		},
		xAxis:
			{
				type:'value',
				scale:true
			},

		yAxis:
			{
				type:'value',
				scale:true
			},
		series:
			{
				type:'scatter'
				// ,xAxisIndex:0
				// ,yAxisIndex:0
				// ,symbolSize:10

			}

	};
	mCharts.setOption(option)
})();